﻿using iTelluro.Explorer.Program.controller;
using Topshelf;

namespace iTelluro.Explorer.Program
{


    class program
    {
        static void Main(string[] args)
        {          
            var host = HostFactory.New(x =>
                {
                    x.EnablePauseAndContinue();
                    x.EnableShutdown();
                    x.SetServiceName("DataQueryServer");
                    x.SetDisplayName("数据查询服务");
                    x.SetDescription("对气象预警数据进行查询");
                    x.RunAsLocalService();
                    x.Service<WarningServices>();
                   
                });
            host.Run();

        }
    }
}
